@use "sass:color";

.page {
  min-height: 100vh;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(147, 197, 253, 0.12) 0%, rgba(147, 197, 253, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: #1f2d3d;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid #f0f2f5;
}
.headerInner {
  width: 100%;
  max-width: 860px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #1f2d3d;
  text-decoration: none;
  border: 1px solid #eef0f4;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31,45,61,.06);
}
.title {
  font-size: 16px;
  font-weight: 700;
}
.site {
  font-size: 12px;
  color: #8a93a0;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 12px 28px;
}

.section {
  position: relative;
  padding: 14px 12px 12px;
  border-radius: 12px;
  border: 1px solid #f0f2f5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,45,61,.06);
  margin-bottom: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.badge {
  position: absolute;
  top: 0;
  left: 8px;
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transform: translateY(-50%); /* half in, half out of the image */
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#ff8a00,#ff6a00);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255,122,0,.28);
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31,45,61,.12);
  border-color: #e7ebf2;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.coverWrap {
  position: relative;
}
.cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.gridList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  padding: 6px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 10px;
  padding: 0 8px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  color: #31415a;
  font-size: 13px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31,45,61,.08);
  background: #ffffff;
  border-color: #d9e1ec;
}

@media (max-width: 860px) {
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
  .cover {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 680px) {
  .headerInner {
    padding: 0 10px;
  }
  .title {
    font-size: 15px;
  }
  .badge {
    top: 0;
    left: 6px;
    padding: 5px 10px;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(255,122,0,.26);
    transform: translateY(-50%);
  }
  .pill {
    justify-content: flex-start;
    padding: 0 10px;
  }
}
